import http from '../utils/axios'
//监管报送详情接口
export function superviseList(query: any) {
  return http.request({
    url: '/report/supervise/list',
    method: 'post',
    data: query
  })
}
//
export function superviseDownload(query: any) {
  return http.request({
    url: '/report/supervise/download',
    responseType: 'blob',
    method: 'post',
    data: query
  })
}
//导出全部
export function superviseDownloadAll(query: any) {
  return http.request({
    url: '/report/supervise/download/all',
    responseType: 'blob',
    method: 'post',
    data: query
  })
}
//运营报表列表
export function statOperating(query: any) {
  return http.request({
    url: '/operating_stat/statOperating',
    method: 'post',
    data: query
  })
}
//运营报表获取所有产品
export function listProduct(query: any) {
  return http.request({
    url: '/operating_stat/listProduct',
    method: 'post',
    data: query
  })
}
//运营报表获取超时列表
export function operatingStatTimeout(query: any) {
  return http.request({
    url: '/operating_stat/statTimeout',
    method: 'post',
    data: query
  })
}
//运营报表导出
export function operatingExportOperating(query: any) {
  return http.request({
    url: '/operating_stat/exportOperating',
    method: 'post',
    responseType: 'blob',
    data: query
  })
}
//获取公司基本信息
export function statisticalCompanyInfo(query: any) {
  return http.request({
    url: '/statisticalCompany/info',
    method: 'post',
    data: query
  })
}
//修改公司基本信息
export function statisticalCompanyAdd(query: any) {
  return http.request({
    url: '/statisticalCompany/add',
    method: 'post',
    data: query
  })
}
//获取机构
export function superviseFilterDate(query: any) {
  return http.request({
    url: '/report/supervise/filterDate',
    method: 'post',
    data: query
  })
}
//业务报表汇总数据
export function statistic(query: any) {
  return http.request({
    url: '/service_stat/statistic',
    method: 'post',
    data: query
  })
}
//业务进件数据统计
export function serviceStatInfo(query: any) {
  return http.request({
    url: '/service_stat/info',
    method: 'post',
    data: query
  })
}
//分业务统计详情
export function serviceStatList(query: any) {
  return http.request({
    url: '/service_stat/list',
    method: 'post',
    data: query
  })
}
//分业务统计导出
export function serviceStatExport(query: any) {
  return http.request({
    url: '/service_stat/export',
    responseType: 'blob',
    method: 'post',
    data: query
  })
}
//总业务数
export function screenTotalBiz(query: any) {
  return http.request({
    url: '/screen/totalBiz',
    method: 'post',
    data: query
  })
}
//担保产品对应笔数
export function productBizCount(query: any) {
  return http.request({
    url: '/screen/productBizCount',
    method: 'post',
    data: query
  })
}
//担保产品月份进件金额
export function productAmount(query: any) {
  return http.request({
    url: '/screen/productAmount',
    method: 'post',
    data: query
  })
}
//合作机构
export function agencyStat(query: any) {
  return http.request({
    url: '/screen/agencyStat',
    method: 'post',
    data: query
  })
}
//近30日担保户数
export function cusLabelStat(query: any) {
  return http.request({
    url: '/screen/cusLabelStat',
    method: 'post',
    data: query
  })
}
//贷款金额占比
export function amountPercent(query: any) {
  return http.request({
    url: '/screen/amountPercent',
    method: 'post',
    data: query
  })
}
//学历统计
export function academicStat(query: any) {
  return http.request({
    url: '/screen/academicStat',
    method: 'post',
    data: query
  })
}
//统计
export function productCategoryBizCount(query: any) {
  return http.request({
    url: '/screen/productCategoryBizCount',
    method: 'post',
    data: query
  })
}
//每月担保金额
export function amountByMonth(query: any) {
  return http.request({
    url: '/screen/amountByMonth',
    method: 'post',
    data: query
  })
}